<template>
	<view class="SearchPage">
		<Search></Search>
		<view class="">
			<text>热搜榜</text>
			<view>
				<view v-for="(item,index) in hotList" :key="index">
					<text>{{index+1}}</text>
					<text>{{item.searchWord}}</text>
					<text>{{item.content}}</text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import Search from "../../components/Search/Search.vue";
	import {getSearchHot} from "../../tools/ajax.js"
	export default {
		name: "SearchPage",
		components:{
			Search
		},
		data() {
			return {
				hotList: []
			}
		},
		created() {
			uni.setNavigationBarTitle({
				title: "搜索"
			}),
			getSearchHot().then(res=>{
				this.hotList = res.data
			})
		},
		methods:{
			
		}
	}
</script>

<style>
</style>
